/*
 * @Author: zshawk1982
 * @Date: 2022-11-13 15:35:40
 * @LastEditTime: 2022-11-15 09:12:25
 * @LastEditors: zshawk1982
 * @Description:
 * @FilePath: \media_web_client\cypress\e2e\my_project_tests\loginTest.cy.js
 */
describe("myalltests", () => {
  it("successfully login", () => {
    const username = "zs";
    const password = "123456";
    cy.visit("http://localhost:8080/#/login");
    cy.get("input[placeholder='username']").type(username);
    cy.get("input[placeholder='password']").type(password);
    cy.get("[data-test=loginBtn]").click();
    cy.url().should("include", "dashboard");
  });
});
